/*
 * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@use 'sass:map';
@use '@angular/material' as mat;
@use '@gravitee/ui-particles-angular' as gio;
@use '../../../scss/gio-layout' as gio-layout;

$typography: map.get(gio.$mat-theme, typography);

:host {
  @include gio-layout.gio-responsive-content-container;
}

.page-header {
  margin-bottom: 24px;

  &__page-title {
    @include mat.typography-level($typography, headline-6);
    margin: 0 0 4px 0;
  }

  &__description {
    color: mat.get-color-from-palette(gio.$mat-space-palette, 'lighter40');
    @include mat.typography-level($typography, body-2);
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  padding: 16px;

  &__title {
    @include mat.typography-level($typography, subtitle-1);
    display: flex;
    flex-direction: column;
    justify-content: center;

    h3 {
      margin: 0;
    }
  }
}

.form {
  &__body {
    display: flex;
    justify-content: center;
    padding: 24px 0;

    .mat-mdc-card {
      width: 600px;
      border: 1px solid mat.get-color-from-palette(gio.$mat-dove-palette, 'darker10');
      box-shadow: 0 2px 4px 0 mat.get-color-from-palette(gio.$mat-dove-palette, 'darker20');
    }
  }

  &__actions {
    display: flex;
    justify-content: space-between;
    padding-top: 36px;
  }

  .form-field {
    width: 100%;
  }
}

.providers {
  &__body {
    padding: 24px 0;
  }

  &__actions {
    margin-top: 8px;
    display: flex;
    justify-content: end;
  }

  .list {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
  }
}

textarea {
  resize: none;
}

.info,
.hint {
  color: mat.get-color-from-palette(gio.$mat-space-palette, 'lighter40');
}

mat-stepper {
  border-top: 1px solid mat.get-color-from-palette(gio.$mat-dove-palette, 'darker20');
}

.logo {
  margin-bottom: 10px;
}

.logo,
.name {
  display: block;
}

.badges {
  display: flex;
  justify-content: center;
  margin: 36px 0 20px 0;
}
